﻿using DSTMEETING.Win.App.Parts;
using JizCode.WPF;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace DSTMEETING.Win.App.Activities
{
    /// <summary>
    /// SelectMeetingActivity.xaml 的交互逻辑
    /// </summary>
    public partial class SelectMeetingActivity : Activity
    {
        public SelectMeetingActivity()
        {
            InitializeComponent();
        }

        protected override void OnActive()
        {
            DSTMEETING.Win.App.Views.MainView.SetHeader("选择会议", new SelectMeetingToolbar(this));
            if(IsFirstActive)
            {
                StackPanel panel = new StackPanel();
                //panel.Orientation = Orientation.Horizontal;
                for (int index = 0; index < 10; index++)
                {
                    MeetingCard card = new MeetingCard(this);
                    panel.Children.Add(card);
                }
                scrollViewer.Content = panel;
            }
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Switch(new SignActivity());
        }
    }
}
